<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/26
 * Time: 13:16
 */

namespace Admin\Model;
use Think\Model;
use Think\Model\RelationModel;

class ReplyModel extends RelationModel
{
    protected  $tableName = 'reply';
    protected $_link = array(
        'consult' => array(
            'mapping_type' => self::BELONGS_TO,
            'class_name' => 'Consulting',
            'foreign_key' => 'consult_id',
            //'mapping_key'  => 'id'
        ),

    );
}